package latisi.models {
  import org.restfulx.collections.ModelsCollection;
  
  import org.restfulx.models.RxModel;
  
  [Resource(name="pages")]
  [Bindable]
  public class Page extends RxModel {
    public static const LABEL:String = "number";

    public var number:int = 0;

    [BelongsTo]
    public var article:Article;

    [HasMany]
    public var tblocks:ModelsCollection;
    
    [HasMany]
    public var words:ModelsCollection;
    
    [Ignored]
    public var pageImageUrl:String;

    [Ignored]
    public var thumbPageImageUrl:String;

    [Ignored]
    public var pageImageWidth:String;

    [Ignored]
    public var pageImageHeight:String;
    
    public function Page() {
      super(LABEL);
    }
  }
}
